package com.itrus.util;

import java.util.ArrayList;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.BooleanUtils;
import org.apache.log4j.Logger;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org.bouncycastle.asn1.x509.X509Name;

public class DnComponents
{
  public static final String BUSINESSCATEGORY = "BUSINESSCATEGORY";
  public static final String COMMONNAME = "COMMONNAME";
  public static final String COUNTRY = "COUNTRY";
  public static final String COUNTRYOFCITIZENSHIP = "COUNTRYOFCITIZENSHIP";
  public static final String COUNTRYOFRESIDENCE = "COUNTRYOFRESIDENCE";
  public static final String DATEOFBIRTH = "DATEOFBIRTH";
  public static final String DIRECTORYNAME = "DIRECTORYNAME";
  public static final String DNEMAIL = "DNEMAIL";
  public static final String DNQUALIFIER = "DN";
  public static final String DNSNAME = "DNSNAME";
  public static final String DOMAINCOMPONENT = "DOMAINCOMPONENT";
  public static final String EDIPARTNAME = "EDIPARTNAME";
  public static final String GENDER = "GENDER";
  public static final String GIVENNAME = "GIVENNAME";
  public static final String GUID = "GUID";
  public static final String INITIALS = "INITIALS";
  public static final String IPADDRESS = "IPADDRESS";
  public static final String LOCALE = "LOCALE";
  public static final String ORGANIZATION = "ORGANIZATION";
  public static final String ORGANIZATIONUNIT = "ORGANIZATIONUNIT";
  public static final String OTHERNAME = "OTHERNAME";
  public static final String PLACEOFBIRTH = "PLACEOFBIRTH";
  public static final String POSTALADDRESS = "POSTALADDRESS";
  public static final String POSTALCODE = "POSTALCODE";
  public static final String REGISTEREDID = "REGISTEREDID";
  public static final String RFC822NAME = "RFC822NAME";
  public static final String SN = "SN";
  public static final String STATE = "STATE";
  public static final String SURNAME = "SURNAME";
  public static final String TELEPHONENUMBER = "TELEPHONENUMBER";
  public static final String TITLE = "TITLE";
  public static final String UID = "UID";
  public static final String UNIFORMRESOURCEID = "UNIFORMRESOURCEID";
  public static final String UNSTRUCTUREDADDRESS = "UNSTRUCTUREDADDRESS";
  public static final String UNSTRUCTUREDNAME = "UNSTRUCTUREDNAME";
  public static final String UPN = "UPN";
  public static final String X400ADDRESS = "X400ADDRESS";
  private static ArrayList altNameDnIds;
  private static ArrayList altNameExtractorFields;
  private static ArrayList altNameFields;
  private static HashMap altNameIdToExtractorFieldMap;
  private static ArrayList altNameLanguageTexts;
  private static String[] dNObjectsForward;
  private static String[] dNObjectsReverse;
  private static ArrayList dirAttrDnIds;
  private static ArrayList dirAttrExtractorFields;
  private static ArrayList dirAttrFields;
  private static HashMap dirAttrIdToExtractorFieldMap;
  private static ArrayList dirAttrLanguageTexts;
  private static ArrayList dnDnIds;
  private static HashMap dnErrorTextMap;
  private static ArrayList dnExtractorFields;
  private static HashMap dnIdErrorMap;
  private static HashMap dnIdToExtractorFieldMap;
  private static HashMap dnIdToProfileIdMap;
  private static HashMap dnIdToProfileNameMap;
  private static ArrayList dnLanguageTexts;
  private static HashMap dnNameIdMap;
  private static ArrayList dnProfileFields;
  private static Logger log = Logger.getLogger(DnComponents.class);
  private static DnComponents obj = new DnComponents();
  private static HashMap oids = new HashMap();
  private static HashMap profileIdLanguageMap;
  private static HashMap profileIdToDnIdMap;
  private static HashMap profileNameIdMap;
  private static HashMap profileNameLanguageMap;
  private static final boolean reverseOrder = BooleanUtils.toBoolean("@certtools.dnorderreverse@");

  static
  {
    oids.put("c", X509Name.C);
    oids.put("dc", X509Name.DC);
    oids.put("st", X509Name.ST);
    oids.put("l", X509Name.L);
    oids.put("o", X509Name.O);
    oids.put("ou", X509Name.OU);
    oids.put("t", X509Name.T);
    oids.put("surname", X509Name.SURNAME);
    oids.put("initials", X509Name.INITIALS);
    oids.put("givenname", X509Name.GIVENNAME);
    oids.put("gn", X509Name.GIVENNAME);
    oids.put("sn", X509Name.SN);
    oids.put("serialnumber", X509Name.SN);
    oids.put("cn", X509Name.CN);
    oids.put("uid", X509Name.UID);
    oids.put("dn", X509Name.DN_QUALIFIER);
    oids.put("emailaddress", X509Name.EmailAddress);
    oids.put("e", X509Name.EmailAddress);
    oids.put("email", X509Name.EmailAddress);
    oids.put("unstructuredname", X509Name.UnstructuredName);
    oids.put("unstructuredaddress", X509Name.UnstructuredAddress);
    oids.put("postalcode", X509Name.POSTAL_CODE);
    oids.put("businesscategory", X509Name.BUSINESS_CATEGORY);
    oids.put("postaladdress", X509Name.POSTAL_ADDRESS);
    dNObjectsForward = new String[] { "telephonenumber", "postaladdress", "businesscategory", "postalcode", "unstructuredaddress", "unstructuredname", "emailaddress", "e", "email", "dn", "uid", "cn", "sn", "serialnumber", "gn", "givenname", "initials", "surname", "t", "ou", "o", "l", "st", "dc", "c" };
    dNObjectsReverse = null;
    dnNameIdMap = new HashMap();
    profileNameIdMap = new HashMap();
    dnIdToProfileNameMap = new HashMap();
    dnIdToProfileIdMap = new HashMap();
    profileIdToDnIdMap = new HashMap();
    dnErrorTextMap = new HashMap();
    profileNameLanguageMap = new HashMap();
    profileIdLanguageMap = new HashMap();
    dnIdErrorMap = new HashMap();
    dnIdToExtractorFieldMap = new HashMap();
    altNameIdToExtractorFieldMap = new HashMap();
    dirAttrIdToExtractorFieldMap = new HashMap();
    dnProfileFields = new ArrayList();
    dnLanguageTexts = new ArrayList();
    dnDnIds = new ArrayList();
    altNameFields = new ArrayList();
    altNameLanguageTexts = new ArrayList();
    altNameDnIds = new ArrayList();
    dirAttrFields = new ArrayList();
    dirAttrLanguageTexts = new ArrayList();
    dirAttrDnIds = new ArrayList();
    dnExtractorFields = new ArrayList();
    altNameExtractorFields = new ArrayList();
    dirAttrExtractorFields = new ArrayList();
    load();
  }

  public static int dnIdToProfileId(int paramInt)
  {
    return ((Integer)dnIdToProfileIdMap.get(new Integer(paramInt))).intValue();
  }

  public static String dnIdToProfileName(int paramInt)
  {
    return (String)dnIdToProfileNameMap.get(new Integer(paramInt));
  }

  public static ArrayList getAltNameDnIds()
  {
    return altNameDnIds;
  }

  protected static String getAltNameExtractorFieldFromDnId(int paramInt)
  {
    return (String)altNameIdToExtractorFieldMap.get(new Integer(paramInt));
  }

  protected static ArrayList getAltNameExtractorFields()
  {
    return altNameExtractorFields;
  }

  public static ArrayList getAltNameFields()
  {
    return altNameFields;
  }

  public static ArrayList getAltNameLanguageTexts()
  {
    return altNameLanguageTexts;
  }

  public static ArrayList getDirAttrDnIds()
  {
    return dirAttrDnIds;
  }

  protected static String getDirAttrExtractorFieldFromDnId(int paramInt)
  {
    return (String)dirAttrIdToExtractorFieldMap.get(new Integer(paramInt));
  }

  protected static ArrayList getDirAttrExtractorFields()
  {
    return dirAttrExtractorFields;
  }

  public static ArrayList getDirAttrFields()
  {
    return dirAttrFields;
  }

  public static ArrayList getDnDnIds()
  {
    return dnDnIds;
  }

  protected static String getDnExtractorFieldFromDnId(int paramInt)
  {
    return (String)dnIdToExtractorFieldMap.get(new Integer(paramInt));
  }

  protected static ArrayList getDnExtractorFields()
  {
    return dnExtractorFields;
  }

  public static ArrayList getDnLanguageTexts()
  {
    return dnLanguageTexts;
  }

  public static String[] getDnObjects()
  {
    if (!reverseOrder)
      return dNObjectsForward;
    return getDnObjectsReverse();
  }

  public static String[] getDnObjects(boolean paramBoolean)
  {
    if (paramBoolean)
      return dNObjectsForward;
    return getDnObjectsReverse();
  }

  protected static String[] getDnObjectsReverse()
  {
    if (dNObjectsReverse == null)
    {
      dNObjectsReverse = (String[])dNObjectsForward.clone();
      ArrayUtils.reverse(dNObjectsReverse);
    }
    return dNObjectsReverse;
  }

  public static ArrayList getDnProfileFields()
  {
    return dnProfileFields;
  }

  public static String getErrTextFromDnId(int paramInt)
  {
    return (String)dnIdErrorMap.get(new Integer(paramInt));
  }

  public static String getLanguageConstantFromProfileId(int paramInt)
  {
    return (String)profileIdLanguageMap.get(new Integer(paramInt));
  }

  public static String getLanguageConstantFromProfileName(String paramString)
  {
    return (String)profileNameLanguageMap.get(paramString);
  }

  public static DERObjectIdentifier getOid(String paramString)
  {
    return (DERObjectIdentifier)oids.get(paramString.toLowerCase());
  }

  public static HashMap getProfilenameIdMap()
  {
    return profileNameIdMap;
  }

  public static boolean isReverseOrder()
  {
    return reverseOrder;
  }

  private static void load()
  {
    loadOrdering();
    loadMappings();
  }

  // ERROR //
  private static void loadMappings()
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_0
    //   2: aconst_null
    //   3: astore_1
    //   4: getstatic 131	com/itrus/util/DnComponents:obj	Lcom/itrus/util/DnComponents;
    //   7: invokevirtual 396	java/lang/Object:getClass	()Ljava/lang/Class;
    //   10: ldc_w 398
    //   13: invokevirtual 404	java/lang/Class:getResourceAsStream	(Ljava/lang/String;)Ljava/io/InputStream;
    //   16: astore 6
    //   18: aconst_null
    //   19: astore_0
    //   20: aconst_null
    //   21: astore_1
    //   22: aload 6
    //   24: ifnull +776 -> 800
    //   27: new 406	java/io/InputStreamReader
    //   30: dup
    //   31: aload 6
    //   33: invokespecial 409	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;)V
    //   36: astore 7
    //   38: new 411	java/io/BufferedReader
    //   41: dup
    //   42: aload 7
    //   44: invokespecial 414	java/io/BufferedReader:<init>	(Ljava/io/Reader;)V
    //   47: astore 8
    //   49: aload 8
    //   51: invokevirtual 417	java/io/BufferedReader:ready	()Z
    //   54: ifne +47 -> 101
    //   57: new 392	java/io/IOException
    //   60: dup
    //   61: invokespecial 418	java/io/IOException:<init>	()V
    //   64: athrow
    //   65: astore 4
    //   67: aload 7
    //   69: astore_1
    //   70: aload 8
    //   72: astore_0
    //   73: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   76: ldc_w 420
    //   79: aload 4
    //   81: invokevirtual 424	org/apache/log4j/Logger:error	(Ljava/lang/Object;Ljava/lang/Throwable;)V
    //   84: aload_1
    //   85: ifnull +7 -> 92
    //   88: aload_1
    //   89: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   92: aload_0
    //   93: ifnull +7 -> 100
    //   96: aload_0
    //   97: invokevirtual 428	java/io/BufferedReader:close	()V
    //   100: return
    //   101: aconst_null
    //   102: checkcast 357	[Ljava/lang/String;
    //   105: pop
    //   106: iconst_0
    //   107: istore 10
    //   109: new 280	java/util/ArrayList
    //   112: dup
    //   113: invokespecial 281	java/util/ArrayList:<init>	()V
    //   116: astore 11
    //   118: new 280	java/util/ArrayList
    //   121: dup
    //   122: invokespecial 281	java/util/ArrayList:<init>	()V
    //   125: astore 12
    //   127: aload 8
    //   129: invokevirtual 431	java/io/BufferedReader:readLine	()Ljava/lang/String;
    //   132: astore 13
    //   134: aload 13
    //   136: ifnonnull +59 -> 195
    //   139: aload 8
    //   141: invokevirtual 428	java/io/BufferedReader:close	()V
    //   144: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   147: new 433	java/lang/StringBuilder
    //   150: dup
    //   151: ldc_w 435
    //   154: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   157: iload 10
    //   159: invokevirtual 442	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
    //   162: ldc_w 444
    //   165: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   168: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   171: invokevirtual 454	org/apache/log4j/Logger:debug	(Ljava/lang/Object;)V
    //   174: aload 7
    //   176: ifnull +8 -> 184
    //   179: aload 7
    //   181: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   184: aload 8
    //   186: ifnull +667 -> 853
    //   189: aload 8
    //   191: invokevirtual 428	java/io/BufferedReader:close	()V
    //   194: return
    //   195: aload 13
    //   197: ldc_w 456
    //   200: invokevirtual 459	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   203: ifne -76 -> 127
    //   206: aload 13
    //   208: bipush 59
    //   210: invokestatic 465	org/apache/commons/lang/StringUtils:split	(Ljava/lang/String;C)[Ljava/lang/String;
    //   213: astore 15
    //   215: aload 15
    //   217: ifnull -90 -> 127
    //   220: aload 15
    //   222: arraylength
    //   223: iconst_5
    //   224: if_icmple -97 -> 127
    //   227: aload 15
    //   229: iconst_0
    //   230: aaload
    //   231: astore 16
    //   233: aload 15
    //   235: iconst_1
    //   236: aaload
    //   237: astore 17
    //   239: new 323	java/lang/Integer
    //   242: dup
    //   243: aload 15
    //   245: iconst_2
    //   246: aaload
    //   247: invokespecial 466	java/lang/Integer:<init>	(Ljava/lang/String;)V
    //   250: astore 18
    //   252: aload 15
    //   254: iconst_3
    //   255: aaload
    //   256: astore 19
    //   258: new 323	java/lang/Integer
    //   261: dup
    //   262: aload 15
    //   264: iconst_4
    //   265: aaload
    //   266: invokespecial 466	java/lang/Integer:<init>	(Ljava/lang/String;)V
    //   269: astore 20
    //   271: aload 15
    //   273: iconst_5
    //   274: aaload
    //   275: astore 21
    //   277: aload 15
    //   279: bipush 6
    //   281: aaload
    //   282: astore 22
    //   284: aload 11
    //   286: aload 18
    //   288: invokevirtual 470	java/util/ArrayList:contains	(Ljava/lang/Object;)Z
    //   291: ifeq +462 -> 753
    //   294: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   297: new 433	java/lang/StringBuilder
    //   300: dup
    //   301: ldc_w 472
    //   304: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   307: aload 18
    //   309: invokevirtual 475	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   312: ldc_w 477
    //   315: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   318: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   321: invokevirtual 479	org/apache/log4j/Logger:error	(Ljava/lang/Object;)V
    //   324: aload 12
    //   326: aload 20
    //   328: invokevirtual 470	java/util/ArrayList:contains	(Ljava/lang/Object;)Z
    //   331: ifeq +458 -> 789
    //   334: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   337: new 433	java/lang/StringBuilder
    //   340: dup
    //   341: ldc_w 481
    //   344: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   347: aload 20
    //   349: invokevirtual 475	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   352: ldc_w 477
    //   355: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   358: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   361: invokevirtual 479	org/apache/log4j/Logger:error	(Ljava/lang/Object;)V
    //   364: getstatic 256	com/itrus/util/DnComponents:dnNameIdMap	Ljava/util/HashMap;
    //   367: aload 17
    //   369: aload 18
    //   371: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   374: pop
    //   375: getstatic 258	com/itrus/util/DnComponents:profileNameIdMap	Ljava/util/HashMap;
    //   378: aload 19
    //   380: aload 20
    //   382: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   385: pop
    //   386: getstatic 260	com/itrus/util/DnComponents:dnIdToProfileNameMap	Ljava/util/HashMap;
    //   389: aload 18
    //   391: aload 19
    //   393: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   396: pop
    //   397: getstatic 262	com/itrus/util/DnComponents:dnIdToProfileIdMap	Ljava/util/HashMap;
    //   400: aload 18
    //   402: aload 20
    //   404: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   407: pop
    //   408: getstatic 272	com/itrus/util/DnComponents:dnIdErrorMap	Ljava/util/HashMap;
    //   411: aload 18
    //   413: aload 21
    //   415: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   418: pop
    //   419: getstatic 264	com/itrus/util/DnComponents:profileIdToDnIdMap	Ljava/util/HashMap;
    //   422: aload 20
    //   424: aload 18
    //   426: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   429: pop
    //   430: getstatic 266	com/itrus/util/DnComponents:dnErrorTextMap	Ljava/util/HashMap;
    //   433: aload 18
    //   435: aload 21
    //   437: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   440: pop
    //   441: getstatic 268	com/itrus/util/DnComponents:profileNameLanguageMap	Ljava/util/HashMap;
    //   444: aload 19
    //   446: aload 22
    //   448: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   451: pop
    //   452: getstatic 270	com/itrus/util/DnComponents:profileIdLanguageMap	Ljava/util/HashMap;
    //   455: aload 20
    //   457: aload 22
    //   459: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   462: pop
    //   463: aload 16
    //   465: ldc 24
    //   467: invokevirtual 484	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   470: ifeq +88 -> 558
    //   473: getstatic 283	com/itrus/util/DnComponents:dnProfileFields	Ljava/util/ArrayList;
    //   476: aload 19
    //   478: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   481: pop
    //   482: getstatic 285	com/itrus/util/DnComponents:dnLanguageTexts	Ljava/util/ArrayList;
    //   485: aload 22
    //   487: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   490: pop
    //   491: getstatic 287	com/itrus/util/DnComponents:dnDnIds	Ljava/util/ArrayList;
    //   494: aload 18
    //   496: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   499: pop
    //   500: getstatic 301	com/itrus/util/DnComponents:dnExtractorFields	Ljava/util/ArrayList;
    //   503: new 433	java/lang/StringBuilder
    //   506: dup
    //   507: aload 17
    //   509: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   512: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   515: ldc_w 493
    //   518: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   521: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   524: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   527: pop
    //   528: getstatic 274	com/itrus/util/DnComponents:dnIdToExtractorFieldMap	Ljava/util/HashMap;
    //   531: aload 18
    //   533: new 433	java/lang/StringBuilder
    //   536: dup
    //   537: aload 17
    //   539: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   542: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   545: ldc_w 493
    //   548: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   551: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   554: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   557: pop
    //   558: aload 16
    //   560: ldc_w 495
    //   563: invokevirtual 484	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   566: ifeq +88 -> 654
    //   569: getstatic 289	com/itrus/util/DnComponents:altNameFields	Ljava/util/ArrayList;
    //   572: aload 17
    //   574: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   577: pop
    //   578: getstatic 291	com/itrus/util/DnComponents:altNameLanguageTexts	Ljava/util/ArrayList;
    //   581: aload 22
    //   583: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   586: pop
    //   587: getstatic 293	com/itrus/util/DnComponents:altNameDnIds	Ljava/util/ArrayList;
    //   590: aload 18
    //   592: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   595: pop
    //   596: getstatic 303	com/itrus/util/DnComponents:altNameExtractorFields	Ljava/util/ArrayList;
    //   599: new 433	java/lang/StringBuilder
    //   602: dup
    //   603: aload 17
    //   605: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   608: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   611: ldc_w 493
    //   614: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   617: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   620: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   623: pop
    //   624: getstatic 276	com/itrus/util/DnComponents:altNameIdToExtractorFieldMap	Ljava/util/HashMap;
    //   627: aload 18
    //   629: new 433	java/lang/StringBuilder
    //   632: dup
    //   633: aload 17
    //   635: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   638: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   641: ldc_w 493
    //   644: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   647: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   650: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   653: pop
    //   654: aload 16
    //   656: ldc_w 497
    //   659: invokevirtual 484	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   662: ifeq +192 -> 854
    //   665: getstatic 295	com/itrus/util/DnComponents:dirAttrFields	Ljava/util/ArrayList;
    //   668: aload 17
    //   670: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   673: pop
    //   674: getstatic 297	com/itrus/util/DnComponents:dirAttrLanguageTexts	Ljava/util/ArrayList;
    //   677: aload 22
    //   679: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   682: pop
    //   683: getstatic 299	com/itrus/util/DnComponents:dirAttrDnIds	Ljava/util/ArrayList;
    //   686: aload 18
    //   688: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   691: pop
    //   692: getstatic 305	com/itrus/util/DnComponents:dirAttrExtractorFields	Ljava/util/ArrayList;
    //   695: new 433	java/lang/StringBuilder
    //   698: dup
    //   699: aload 17
    //   701: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   704: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   707: ldc_w 493
    //   710: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   713: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   716: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   719: pop
    //   720: getstatic 278	com/itrus/util/DnComponents:dirAttrIdToExtractorFieldMap	Ljava/util/HashMap;
    //   723: aload 18
    //   725: new 433	java/lang/StringBuilder
    //   728: dup
    //   729: aload 17
    //   731: invokestatic 491	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   734: invokespecial 438	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   737: ldc_w 493
    //   740: invokevirtual 447	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   743: invokevirtual 450	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   746: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   749: pop
    //   750: goto +104 -> 854
    //   753: aload 11
    //   755: aload 18
    //   757: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   760: pop
    //   761: goto -437 -> 324
    //   764: astore_2
    //   765: aload 7
    //   767: astore_1
    //   768: aload 8
    //   770: astore_0
    //   771: aload_1
    //   772: ifnull +7 -> 779
    //   775: aload_1
    //   776: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   779: aload_0
    //   780: ifnull +7 -> 787
    //   783: aload_0
    //   784: invokevirtual 428	java/io/BufferedReader:close	()V
    //   787: aload_2
    //   788: athrow
    //   789: aload 12
    //   791: aload 20
    //   793: invokevirtual 487	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   796: pop
    //   797: goto -433 -> 364
    //   800: new 392	java/io/IOException
    //   803: dup
    //   804: ldc_w 499
    //   807: invokespecial 500	java/io/IOException:<init>	(Ljava/lang/String;)V
    //   810: athrow
    //   811: astore 4
    //   813: aconst_null
    //   814: astore_0
    //   815: aconst_null
    //   816: astore_1
    //   817: goto -744 -> 73
    //   820: astore 14
    //   822: return
    //   823: astore_3
    //   824: goto -37 -> 787
    //   827: astore_2
    //   828: goto -57 -> 771
    //   831: astore_2
    //   832: aload 7
    //   834: astore_1
    //   835: aconst_null
    //   836: astore_0
    //   837: goto -66 -> 771
    //   840: astore 5
    //   842: return
    //   843: astore 4
    //   845: aload 7
    //   847: astore_1
    //   848: aconst_null
    //   849: astore_0
    //   850: goto -777 -> 73
    //   853: return
    //   854: iinc 10 1
    //   857: goto -730 -> 127
    //
    // Exception table:
    //   from	to	target	type
    //   49	65	65	java/io/IOException
    //   101	106	65	java/io/IOException
    //   109	127	65	java/io/IOException
    //   127	134	65	java/io/IOException
    //   139	174	65	java/io/IOException
    //   195	215	65	java/io/IOException
    //   220	324	65	java/io/IOException
    //   324	364	65	java/io/IOException
    //   364	558	65	java/io/IOException
    //   558	654	65	java/io/IOException
    //   654	750	65	java/io/IOException
    //   753	761	65	java/io/IOException
    //   789	797	65	java/io/IOException
    //   49	65	764	finally
    //   101	106	764	finally
    //   109	127	764	finally
    //   127	134	764	finally
    //   139	174	764	finally
    //   195	215	764	finally
    //   220	324	764	finally
    //   324	364	764	finally
    //   364	558	764	finally
    //   558	654	764	finally
    //   654	750	764	finally
    //   753	761	764	finally
    //   789	797	764	finally
    //   4	18	811	java/io/IOException
    //   27	38	811	java/io/IOException
    //   800	811	811	java/io/IOException
    //   179	184	820	java/io/IOException
    //   189	194	820	java/io/IOException
    //   775	779	823	java/io/IOException
    //   783	787	823	java/io/IOException
    //   4	18	827	finally
    //   27	38	827	finally
    //   73	84	827	finally
    //   800	811	827	finally
    //   38	49	831	finally
    //   88	92	840	java/io/IOException
    //   96	100	840	java/io/IOException
    //   38	49	843	java/io/IOException
  }

  // ERROR //
  private static void loadOrdering()
  {
    // Byte code:
    //   0: new 502	java/util/LinkedHashMap
    //   3: dup
    //   4: invokespecial 503	java/util/LinkedHashMap:<init>	()V
    //   7: astore_0
    //   8: aconst_null
    //   9: astore_1
    //   10: aconst_null
    //   11: astore_2
    //   12: getstatic 131	com/itrus/util/DnComponents:obj	Lcom/itrus/util/DnComponents;
    //   15: invokevirtual 396	java/lang/Object:getClass	()Ljava/lang/Class;
    //   18: ldc_w 505
    //   21: invokevirtual 404	java/lang/Class:getResourceAsStream	(Ljava/lang/String;)Ljava/io/InputStream;
    //   24: astore 7
    //   26: aconst_null
    //   27: astore_1
    //   28: aconst_null
    //   29: astore_2
    //   30: aload 7
    //   32: ifnull +250 -> 282
    //   35: new 406	java/io/InputStreamReader
    //   38: dup
    //   39: aload 7
    //   41: invokespecial 409	java/io/InputStreamReader:<init>	(Ljava/io/InputStream;)V
    //   44: astore 8
    //   46: new 411	java/io/BufferedReader
    //   49: dup
    //   50: aload 8
    //   52: invokespecial 414	java/io/BufferedReader:<init>	(Ljava/io/Reader;)V
    //   55: astore 9
    //   57: aload 9
    //   59: invokevirtual 417	java/io/BufferedReader:ready	()Z
    //   62: ifne +45 -> 107
    //   65: new 392	java/io/IOException
    //   68: dup
    //   69: invokespecial 418	java/io/IOException:<init>	()V
    //   72: athrow
    //   73: astore 10
    //   75: aload 8
    //   77: astore_2
    //   78: aload 9
    //   80: astore_1
    //   81: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   84: ldc_w 507
    //   87: invokevirtual 454	org/apache/log4j/Logger:debug	(Ljava/lang/Object;)V
    //   90: aload_2
    //   91: ifnull +7 -> 98
    //   94: aload_2
    //   95: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   98: aload_1
    //   99: ifnull +7 -> 106
    //   102: aload_1
    //   103: invokevirtual 428	java/io/BufferedReader:close	()V
    //   106: return
    //   107: aconst_null
    //   108: checkcast 357	[Ljava/lang/String;
    //   111: pop
    //   112: aload 9
    //   114: invokevirtual 431	java/io/BufferedReader:readLine	()Ljava/lang/String;
    //   117: astore 12
    //   119: aload 12
    //   121: ifnonnull +81 -> 202
    //   124: aload 9
    //   126: invokevirtual 428	java/io/BufferedReader:close	()V
    //   129: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   132: ldc_w 509
    //   135: invokevirtual 512	org/apache/log4j/Logger:info	(Ljava/lang/Object;)V
    //   138: getstatic 136	com/itrus/util/DnComponents:oids	Ljava/util/HashMap;
    //   141: invokevirtual 515	java/util/HashMap:clear	()V
    //   144: getstatic 136	com/itrus/util/DnComponents:oids	Ljava/util/HashMap;
    //   147: aload_0
    //   148: invokevirtual 519	java/util/HashMap:putAll	(Ljava/util/Map;)V
    //   151: aload_0
    //   152: invokevirtual 523	java/util/LinkedHashMap:keySet	()Ljava/util/Set;
    //   155: iconst_0
    //   156: anewarray 248	java/lang/String
    //   159: invokeinterface 529 2 0
    //   164: checkcast 357	[Ljava/lang/String;
    //   167: putstatic 252	com/itrus/util/DnComponents:dNObjectsForward	[Ljava/lang/String;
    //   170: aload 8
    //   172: astore 13
    //   174: aload 9
    //   176: astore 14
    //   178: aload 13
    //   180: ifnull +8 -> 188
    //   183: aload 13
    //   185: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   188: aload 14
    //   190: ifnull -84 -> 106
    //   193: aload 14
    //   195: invokevirtual 428	java/io/BufferedReader:close	()V
    //   198: return
    //   199: astore 15
    //   201: return
    //   202: aload 12
    //   204: ldc_w 456
    //   207: invokevirtual 459	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   210: ifne -98 -> 112
    //   213: aload 12
    //   215: bipush 61
    //   217: invokestatic 465	org/apache/commons/lang/StringUtils:split	(Ljava/lang/String;C)[Ljava/lang/String;
    //   220: astore 16
    //   222: aload 16
    //   224: ifnull -112 -> 112
    //   227: aload 16
    //   229: arraylength
    //   230: iconst_1
    //   231: if_icmple -119 -> 112
    //   234: aload_0
    //   235: aload 16
    //   237: iconst_0
    //   238: aaload
    //   239: new 380	org/bouncycastle/asn1/DERObjectIdentifier
    //   242: dup
    //   243: aload 16
    //   245: iconst_1
    //   246: aaload
    //   247: invokespecial 530	org/bouncycastle/asn1/DERObjectIdentifier:<init>	(Ljava/lang/String;)V
    //   250: invokevirtual 531	java/util/LinkedHashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   253: pop
    //   254: goto -142 -> 112
    //   257: astore_3
    //   258: aload 8
    //   260: astore_2
    //   261: aload 9
    //   263: astore_1
    //   264: aload_2
    //   265: ifnull +7 -> 272
    //   268: aload_2
    //   269: invokevirtual 427	java/io/InputStreamReader:close	()V
    //   272: aload_1
    //   273: ifnull +7 -> 280
    //   276: aload_1
    //   277: invokevirtual 428	java/io/BufferedReader:close	()V
    //   280: aload_3
    //   281: athrow
    //   282: getstatic 126	com/itrus/util/DnComponents:log	Lorg/apache/log4j/Logger;
    //   285: ldc_w 507
    //   288: invokevirtual 454	org/apache/log4j/Logger:debug	(Ljava/lang/Object;)V
    //   291: aconst_null
    //   292: astore 14
    //   294: aconst_null
    //   295: astore 13
    //   297: goto -119 -> 178
    //   300: astore 5
    //   302: aconst_null
    //   303: astore_1
    //   304: aconst_null
    //   305: astore_2
    //   306: goto -225 -> 81
    //   309: astore 4
    //   311: goto -31 -> 280
    //   314: astore_3
    //   315: goto -51 -> 264
    //   318: astore_3
    //   319: aload 8
    //   321: astore_2
    //   322: aconst_null
    //   323: astore_1
    //   324: goto -60 -> 264
    //   327: astore 6
    //   329: return
    //   330: astore 18
    //   332: aload 8
    //   334: astore_2
    //   335: aconst_null
    //   336: astore_1
    //   337: goto -256 -> 81
    //
    // Exception table:
    //   from	to	target	type
    //   57	73	73	java/io/IOException
    //   107	112	73	java/io/IOException
    //   112	119	73	java/io/IOException
    //   124	170	73	java/io/IOException
    //   202	222	73	java/io/IOException
    //   227	254	73	java/io/IOException
    //   183	188	199	java/io/IOException
    //   193	198	199	java/io/IOException
    //   57	73	257	finally
    //   107	112	257	finally
    //   112	119	257	finally
    //   124	170	257	finally
    //   202	222	257	finally
    //   227	254	257	finally
    //   12	26	300	java/io/IOException
    //   35	46	300	java/io/IOException
    //   282	291	300	java/io/IOException
    //   268	272	309	java/io/IOException
    //   276	280	309	java/io/IOException
    //   12	26	314	finally
    //   35	46	314	finally
    //   81	90	314	finally
    //   282	291	314	finally
    //   46	57	318	finally
    //   94	98	327	java/io/IOException
    //   102	106	327	java/io/IOException
    //   46	57	330	java/io/IOException
  }

  public static int profileIdToDnId(int paramInt)
  {
    Integer localInteger = (Integer)profileIdToDnIdMap.get(new Integer(paramInt));
    if (localInteger == null)
      log.error("No dn id mapping from profile id " + paramInt);
    return localInteger.intValue();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.util.DnComponents
 * JD-Core Version:    0.6.2
 */